package com.vm.osm.business.dao;

import com.vm.osm.business.dto.rsp.customer.Customer;
import com.vm.osm.business.entity.OsmServerProvider;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by chenzui on 2018/2/24.
 */
public interface OsmServerProviderMapper extends BaseDao<OsmServerProvider,String> {
    public List<Customer> queryProvidersByCond(@Param("keyWord") String keyWord);

    public List<Customer> queryByPage(@Param("companyId") String companyId,@Param("name") String name,@Param("location") String location);

    /**
     * 按条件查询全部
     *
     * @param params 查询条件
     * @return 记录列表
     */
    List<OsmServerProvider> find(Map<String, Object> params);


    Customer queryProvidersById(@Param("id") String id);
}
